package CreationalPatterns.Prototype;

public abstract class Shape implements Cloneable {

  private int id;
  protected String type;
  public abstract void draw();

  public int getId() {
    return id;
  }

  public void setId(int id) {
    this.id = id;
  }

  public String getType() {
    return type;
  }

  public void setType(String type) {
    this.type = type;
  }

  @Override
  protected Object clone(){

    Object clone = null;
    try{
      clone = super.clone();
    }catch (Exception e){
      e.printStackTrace();
    }
    return clone;
  }
}
